/**
 * 
 */
package com.antilia.infomaresme.pages.edit;

import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

import com.antilia.infomaresme.InfomaresmeApplication;
import com.antilia.infomaresme.data.dataobjects.ImageInfo;
import com.antilia.infomaresme.data.dataobjects.Item;
import com.antilia.infomaresme.pages.images.ImagePanel;

/**
 * @author Ernesto
 *
 */
public class ShowImagePanel extends Panel {

	private static final long serialVersionUID = 1L;

	/**
	 * @param id
	 * @param model
	 */
	public ShowImagePanel(String id, IModel<ImageInfo> model, IModel<Item> model2) {
		super(id, model);
		
		add(new ImagePanel("image", InfomaresmeApplication.getQAApplication().getImageService().getImageDetail(model.getObject(), model2.getObject()), 400, 400));
	}

}
